import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import 'remixicon/fonts/remixicon.css'  //remixicon 图标库
import '@/fonts/digiface/digiface.css' // 电子字体
import elementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'cesium/Build/Cesium/Widgets/widgets.css'  // cesium 样式
import '@/styles/index.scss'  // 全局样式
import gojs from 'gojs';

Vue.use(elementUI);
Vue.use(gojs);

/**
 * 注册过滤器 
 */
import * as filters from './filters';
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

/**
 * 注册指令
 */
import * as directives from './directives';
Object.keys(directives).forEach(key => {
  Vue.use(directives[key])
})

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
